﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using AspNetCs.Common;
using AspNetCs.Enumerations.Channel_Enum;
using AspNetCs.Enumerations;

public partial class control_CreateMemorial : BaseControl
{
    /// <summary>
    /// 频道
    /// </summary>
    protected int channelType = 0;
    /// <summary>
    /// 按编号还是名称查
    /// </summary>
    protected int isNumer = 0;
    /// <summary>
    /// 编号或名称的值
    /// </summary>
    protected string idOrName = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if ((!string.IsNullOrEmpty(Request["channelType"])) && (!string.IsNullOrEmpty(Request["isNumer"])) && (Request["idOrName"] != null))
            {
                channelType = StringHelper.isNumber_int(Request["channelType"]);
                isNumer = StringHelper.isNumber_int(Request["isNumer"]);
                idOrName = Request["idOrName"];
                ViewState["channelType"] = channelType;
                ViewState["isNumer"] = isNumer;
                ViewState["idOrName"] = idOrName;
            }
        }
        else
        {
            if (ViewState["channelType"] != null)
            {
                channelType = StringHelper.isNumber_int(ViewState["channelType"].ToString());
            }
            if (ViewState["isNumer"] != null)
            {
                isNumer = StringHelper.isNumber_int(ViewState["isNumer"].ToString());
            }
            if (ViewState["idOrName"] != null)
            {
                idOrName = ViewState["isNumer"].ToString();
            }
        }
    }


    
}
